﻿<Window x:Class="WPFTrees.PropertyDialogs.TreePropertyDlg"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Tree Properties" Height="226" Width="411" 
        ShowInTaskbar="False" WindowStartupLocation="CenterOwner" ResizeMode="NoResize">  
    <Window.Resources>
        <Style TargetType="TextBlock">
            <Setter Property="TextAlignment" Value="Right"></Setter>
        </Style>        
    </Window.Resources>
<Grid Height="146" Width="363">
    <Grid.RowDefinitions>
        <RowDefinition Height="22*"></RowDefinition>
        <RowDefinition Height="22*"></RowDefinition>
        <RowDefinition Height="22*"></RowDefinition>
        <RowDefinition Height="22*"></RowDefinition>
        <RowDefinition Height="22*"></RowDefinition>
        <RowDefinition Height="66*"></RowDefinition>
        </Grid.RowDefinitions>
    <Grid.ColumnDefinitions>
        <ColumnDefinition Width="134*"></ColumnDefinition>
        <ColumnDefinition Width="334*"></ColumnDefinition>
    </Grid.ColumnDefinitions>
        <Label Content="Path" Height="28" Name="label1" Grid.Row="0" />
        <TextBox BorderBrush="Black" Grid.Column="1" Grid.Row="0" IsReadOnly="True"  x:Name="textBlockPath"   VerticalAlignment="Top" />
        <Label Content="Size" Name="label2" Grid.Row="1" Margin="0,0,6,8" Grid.RowSpan="2" />
        <TextBlock Grid.Column="1" Grid.Row="1"  x:Name="textBlockSize"  VerticalAlignment="Top" />
        <Label Content="Nodes total" Height="28" Name="label3" Grid.Row="2"/>
        <TextBlock Grid.Column="1" Grid.Row="2"  x:Name="textBlockNodes"  VerticalAlignment="Top" />
        <Label Content="Leaves" Height="28" Name="label4" Grid.Row="3" />        
        <TextBlock Grid.Column="1" Grid.Row="3"  x:Name="textBlockLeaves" VerticalAlignment="Top"  />
        <Label Visibility="Hidden" Content="Contains branch lenghts" Height="28" Name="label5" Grid.Row="4" />
        <TextBlock Grid.Column="1" Grid.Row="4"  x:Name="textBlockLenghts"  VerticalAlignment="Top" />
        <Button Content="OK" IsDefault="True" Click="Button_Click"  Grid.Row="5" Margin="0,16,139,12" HorizontalAlignment="Right" Width="97" Grid.Column="1" />
    </Grid>
</Window>    